﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="false" CodeBehind="ProductList.aspx.vb" Inherits="ACompany.OrderProcessing.UI.MVCWeb.ProductList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

<h2>Products</h2>
<ul>
    <% For Each Product As ACompany.OrderProcessing.Model.Product In ViewData.Model%>
            
            <li><%=Html.ActionLink(Product.Name, "Details", New With {.id = Product.Id.ToString})%></li>
            
    <% Next%>

</ul>

<%=Html.ActionLink("Add A Product", "Add")%>

</asp:Content>
